package com.ynwt.job;

import com.ynwt.service.EventService;
import com.ynwt.service.JobService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * Created by huangying on 2017/6/2.
 */
@Component
@EnableScheduling
public class WeixinTemplateJob {

    /**
     * 发送签到提醒模板消息 todo 签到提醒
     */
//    @Scheduled(cron = "0 0 7 * * ?")
    public void sendSignTemplateMsg() {
        jobService.sendSignTemplateMsg();
    }

    /**
     * 发送签到提醒模板消息测试
     */
//    @Scheduled(fixedDelay = 10000)
//    public void sendSignTemplateMsgTest() {
//        jobService.sendSignTemplateMsg();
//    }

    @Autowired
    private JobService jobService;
}
